home *** CD-ROM | disk | FTP | other *** search
-
- 1.Short Function reference guide
- 2.Human forms
- 3.Fields names
-
- ------------------------------------------------------------------------------------
-
-
- 1.Short Function reference guide
-
- ------------------------------------------------------------------------------------
-
- ACCEPT
- LV
- <socket/N>,<stem/V>
- Accept e connection
-
- ------------------------------------------------------------------------------------
-
- ADDR2C
- L
- <addr/N>
- Converts from Internet address to packed char
-
- ------------------------------------------------------------------------------------
-
- BIND
- LV
- <socket/N>,<stem/V>
- Bind a socket on a port
-
- ------------------------------------------------------------------------------------
-
- CLOSESOCKET
- L
- <socket/N>
- Close a socket
-
- ------------------------------------------------------------------------------------
-
- CONNECT
- LV
- <socket/N>,<stem/V>
- Connect a socket
-
- ------------------------------------------------------------------------------------
-
- DUP2SOCKET
- L
- <socket/N>
- Dup a socket
-
- ------------------------------------------------------------------------------------
-
- ERRNO
- -
- -
- Return current error number
-
- ------------------------------------------------------------------------------------
-
- ERRORSTRING
- L
- <code/N>
- Return string associated with error code
-
- ------------------------------------------------------------------------------------
-
- GETHOSTBYADDR
- VL
- <stem/V>,<addr/N>
-
- ------------------------------------------------------------------------------------
-
- GETHOSTBYNAME
- VD
- <stem/V>,<hostName>
-
- Make a lookup an a host name
-
- ------------------------------------------------------------------------------------
-
- GETHOSTID
- -
- -
- Return current host id
-
- ------------------------------------------------------------------------------------
-
- GETHOSTNAME
- V
- <stem/V>
- Return in stem current host name
-
- ------------------------------------------------------------------------------------
-
- GETPEERNAME,
- LV
- <socket/N>,<stem/V>
-
- Fill stem with info about (connected) socket
-
- ------------------------------------------------------------------------------------
-
- GETPROTOBYNAME
- VD
- <stem/V>,<protocol>
- Search for local protocol entry by name
-
- ------------------------------------------------------------------------------------
-
- GETPROTOBYNUMBUER
- VL
- <stem/V>,<protocol/N>
- Search for local protocol entry by number
-
- ------------------------------------------------------------------------------------
-
- GETSERVBYNAME
- VDD
- <stem/V>,<name>,<proto>
- Search for local serv entry by service name
-
- ------------------------------------------------------------------------------------
-
- GETSERVBYPORT
- VLD
- <stem/V>,<port/N>,<proto>
- Serach for local serv entry by port number
-
- ------------------------------------------------------------------------------------
-
- GETSOCKETBASE
- V
- <stem/V>
- Get various things from bsdsocket.library base
-
- ------------------------------------------------------------------------------------
-
- GETSOCKETEVENTS
- V
- <stem/V>
- Return last events happened on sockets
-
- ------------------------------------------------------------------------------------
-
- GETSOCKNAME
- LV
- <socket/N>,<stem/V>
- Get socket
-
- ------------------------------------------------------------------------------------
-
- GETSOCKOPT
- LSSV
- <socket/N>,<level>,<name>,<stem/V>
- Get various things from socket at level level
-
- ------------------------------------------------------------------------------------
-
- HELP
- S
- <funName>
- Return string info of a function
-
- ------------------------------------------------------------------------------------
-
- ISLIBON
- D
- <name>
- Tests the stack running or the presence of a library
-
- ------------------------------------------------------------------------------------
-
- HOSTERRORNO
- -
- -
- Return current host lookup error
-
- ------------------------------------------------------------------------------------
-
- HOSTERRORSTRING
- L
- <code/N>
- Return string associated with host lookup code error
-
- ------------------------------------------------------------------------------------
-
- INETADDR
- D
- <addr>
- Convert an Internet address from string form to long
-
- ------------------------------------------------------------------------------------
-
- INETCKSUM
- DL
- <data>,<len>
- Compute an Internet checksum
-
- ------------------------------------------------------------------------------------
-
- INETNTOA
- L
- <addr/N>
- Convert an Internet address from long to string
-
- ------------------------------------------------------------------------------------
-
- IOCTLSOCKET
- LVD
- <socket/N>,<req>,<value/N>
- Set option on socket
-
- ------------------------------------------------------------------------------------
-
- LISTEN
- LL
- <socket/N>,<backlog/n>
- Listen a socket
-
- ------------------------------------------------------------------------------------
-
- OBTAINSOCKET
- LDDD
- <key/N>,<family>,<type>,<protocol>
- Obtain a released socket
-
- ------------------------------------------------------------------------------------
-
- OPENCONNECTION
- DDddv
- <proto>,<localport>,[host],[remoteport],[stem/V]
- Create a socket and ...
-
- ------------------------------------------------------------------------------------
-
- RECV
- LVLd
- <socket/N>,<stem/V>,<len/N>,[flags/N]
- Receive data from a connected socket
-
- ------------------------------------------------------------------------------------
-
- RECVFROM
- LVLdv
- <socket/N>,<stem/V>,<len/n>,[flags/N],[stem/V]
- Receive data from a socket
-
- ------------------------------------------------------------------------------------
-
- RECVLINE
- LVLdv
- <socket/N>,<stem/V>,<len/n>,[flags/N],[stem/V]
- Receive a line from a socket
-
- ------------------------------------------------------------------------------------
-
- RELEASECOPYOFSOCKET
- L
- <socket/N>
- Dup and release the copy of socket
-
- ------------------------------------------------------------------------------------
-
- RELEASESOCKET
- L
- <socket>
- Release a socket
-
- ------------------------------------------------------------------------------------
-
- RESOLVE
- D
- <host>
- Convert from string or name to Internet address
-
- ------------------------------------------------------------------------------------
-
- SEND
- LDd
- <socket/N>,<data>,[flags/N]
- Send data to a connected socket
-
- ------------------------------------------------------------------------------------
-
- SENDTO
- LDdv
- <socket/N>,<data>,<stem/V>,[flags/N]
- Send data to a socket
-
- ------------------------------------------------------------------------------------
-
- SETSOCKETBASE
- V
- <stem/V>
- Set various things in socket base
-
- ------------------------------------------------------------------------------------
-
- SETSOCKOPT
- LSSDll
- <socket/N>,<level>,<opt>,[value],[value/N]
- Set various things on socket at level level
-
- ------------------------------------------------------------------------------------
-
- SHUTDOWN
- LL
- <socket/N>,<mode/N>
- Close a socket and shutdown the connection
-
- ------------------------------------------------------------------------------------
-
- SYSLOG
- D
- <msg>
- Write a message to systemlog
-
- ------------------------------------------------------------------------------------
-
- SOCKET
- DDD
- <family>,<type>,<protocol>
- Create a socket
-
- ------------------------------------------------------------------------------------
-
- WAITSELECT
- Vlll
- <stem/V>,[secs/N],[micro/N],[signals/N]
- Wait for sockets events, timeout or exec signals
-
- ------------------------------------------------------------------------------------
-
- ALLOCSIGNAL
- -
- -
- Allocate an exec signal
-
- ------------------------------------------------------------------------------------
-
- FREESIGNAL
- L
- <signal/N>
- Free an allocated exec signal
-
- ------------------------------------------------------------------------------------
-
- OR
- LLlllllllllllll
- <signal/N>,<signal/N>,{signal/N}
- Or 2 to 14 number
-
- ------------------------------------------------------------------------------------
-
- AND
- LLlllllllllllll
- <signal/N>,<signal/N>,{signal/N}
- And 2 to 14 number
-
- ------------------------------------------------------------------------------------
-
- PORTSIGNAL
- D
- <portName>
- Return the signal of (in macro created) port
-
- ------------------------------------------------------------------------------------
-
- WAIT
- Lll
- <signals/N>,[sec/N],[micro/N]
- Wait for signals with, if present, a timeout of sec and micro
-
- ------------------------------------------------------------------------------------
-
- SIGNAL
- LL
- <task/N>,<signals/N>
- Signal an exec task
-
- ------------------------------------------------------------------------------------
-
-
- 2.Human forms
-
- - type as in socket(family,type,protocol)
- the type of the socket has the string forms
- "STREAM"
- "DGRAM"
- "RAW"
- "RDM"
- "SEQPACKET"
-
- can be passed as integer too.
-
- - protocoll as in socket(family,type,protocol)
- the protocol of the socket has the string forms
- "IP"
- "HOPOPTS"
- "ICMP"
- "IGMP"
- "GGP"
- "IPIP"
- "TCP"
- "EGP"
- "PUP"
- "UDP"
- "IDP"
- "TP"
- "IPV6"
- "ROUTING"
- "FRAGMENT"
- "RSVP"
- "ESP"
- "AH"
- "ICMPV6"
- "NONE"
- "DSTOPTS"
- "EON"
- "ENCAP"
- "DIVERT"
- "RAW"
-
- ------------------------------------------------------------------------------------
-
- 3.Fields names
-
- For each structure the fields read or write by functions are:
-
- - hostent
- - HOSTNAME
- - HOSTADDRTYPE
- - HOSTLENGTH
- - HOSTALIASES.NUM
- - HOSTALIASES.0 , ... , HOSTALIASES.last ( last = HOSTALIASES.NUM-1 )
- - HOSTADDRLIST.NUM
- - HOSTADDRLIST.0 , ... , HOSTADDRLIST.last ( last = HOSTADDRLIST.NUM-1 )
-
-
- - servent
- - SERVNAME
- - SPORT
- - SERVPROTO
- - SERVALIASES.NUM
- - SERVALIASES.0 , ... , SERVALIASES.last ( last = SERVALIASES.NUM-1 )
-
- - protoent
- - PROTONAME
- - PROTOPROTO
- - PROTOALIASES.NUM
- - PROTOALIASES.0 , ... , PROTOALIASES.last ( last = PROTOALIASES.NUM-1 )
-
- - struct sockaddr_in
- passed as argument to functions
- - ADDRFAMILY
- - ADDRPORT
- - ADDRADDR
-
- returned from functions
- - ADDRLEN
- - ADDRFAMILY
- - ADDRPORT
- - ADDRADDR
-
-